i = int(input('净利润: '))
arr = [1000000, 600000, 400000, 200000, 100000, 0]
rat = [0.01, 0.015, 0.03, 0.05, 0.075, 0.1]
r = 0

for index in range(0, 6):
    if i > arr[index]:
        # 计算当前区间的奖金
        r += (i - arr[index]) * rat[index]
        print(f"区间({arr[index]}, {i}]的奖金: {(i - arr[index]) * rat[index]}")
        # 更新i为当前区间的下限，继续计算更低区间的奖金
        i = arr[index]

print(f"总奖金: {r}")